//
//  CartoonBookDetaiData.m
//  GradientView
//
//  Created by Gollum on 16/09/25
//  Copyright (c) __ORGANIZATIONNAME__. All rights reserved.
//

#import "CartoonBookDetaiData.h"
#import "CartoonBookDetai2Data.h"

@implementation CartoonBookDetaiData

+ (NSDictionary *)objectClassInArray{
    return @{@"data" : [CartoonBookDetai2Data class]};
}
- (void)setValue:(id)value forKey:(NSString *)key{
    
    NSMutableArray <CartoonBookDetai2Data *>*dataArray = [NSMutableArray array];
    NSArray *valueArray = value;
    if ([key isEqualToString:@"data"]) {
        for (NSDictionary *dic in valueArray) {
            CartoonBookDetai2Data *data = [CartoonBookDetai2Data modelWithDic:dic];
            [dataArray addObject:data];
        }
        _data = dataArray;
    }
}

@end
